package com.china08.yxyapi.entity.db.continuedu;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 学校任务统计
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_continuedu_statistics_school_task", catalog = "yxy_continuedu", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "school_id", "task_id" }) })
public class YxyContinueduStatisticsSchoolTask extends BaseEntity {

    @Column(name = "school_id", columnDefinition = "varchar(32) comment '学校id' ", nullable = false)
    private String schoolId;// 学校id

    @Column(name = "task_id", columnDefinition = "varchar(32) comment '任务id' ", nullable = false)
    private String taskId;

    @Column(columnDefinition = "varchar(32) comment '学校名称' ", nullable = false)
    private String schoolNick;

    @Column(columnDefinition = "varchar(6) comment '省代码' ", nullable = false)
    private String areaCodeProvince;

    @Column(columnDefinition = "varchar(6) comment '市代码' ", nullable = false)
    private String areaCodeCity;

    @Column(columnDefinition = "varchar(6) comment '区县代码' ", nullable = false)
    private String areaCodeDistrict;

    @Column(columnDefinition = "bigint default 0 comment '报名的人数' ")
    private Long applyCount = 0l;

    @Column(columnDefinition = "bigint default 0 comment '结业人数' ")
    private Long completeCount = 0l;

    @Column(columnDefinition = "double default 0.0 comment '结业率' ")
    private Double completeRate = 0.0;

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolNick() {
        return schoolNick;
    }

    public void setSchoolNick(String schoolNick) {
        this.schoolNick = schoolNick;
    }

    public String getAreaCodeProvince() {
        return areaCodeProvince;
    }

    public void setAreaCodeProvince(String areaCodeProvince) {
        this.areaCodeProvince = areaCodeProvince;
    }

    public String getAreaCodeCity() {
        return areaCodeCity;
    }

    public void setAreaCodeCity(String areaCodeCity) {
        this.areaCodeCity = areaCodeCity;
    }

    public String getAreaCodeDistrict() {
        return areaCodeDistrict;
    }

    public void setAreaCodeDistrict(String areaCodeDistrict) {
        this.areaCodeDistrict = areaCodeDistrict;
    }

    public Long getApplyCount() {
        return applyCount;
    }

    public void setApplyCount(Long applyCount) {
        this.applyCount = applyCount;
    }

    public Long getCompleteCount() {
        return completeCount;
    }

    public void setCompleteCount(Long completeCount) {
        this.completeCount = completeCount;
    }

    public Double getCompleteRate() {
        return completeRate;
    }

    public void setCompleteRate(Double completeRate) {
        this.completeRate = completeRate;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

}
